package Others.DesignPattern.FacadePattern.Original;

import Others.DesignPattern.FacadePattern.Original.Object.*;

public class main {
    public static void main(String[] args) {

        //买入股票和卖出股票
        Stock01 stock01 = new Stock01();
        Stock02 stock02 = new Stock02();
        Stock03 stock03 = new Stock03();
        Realty1 realty1 = new Realty1();
        NationalDebt1 nationalDebt1 = new NationalDebt1();

        //买入
        stock01.buy();
        stock02.buy();
        stock03.buy();
        realty1.buy();
        nationalDebt1.buy();

        //卖出
        stock01.sell();
        stock02.sell();
        stock03.sell();
        realty1.sell();
        nationalDebt1.sell();

        //先说结论，对于这些类本质上是一类产品，如果我们想，让人帮助我们更好的管理，
        //那将变得更为方便，而这就是门面模式--他就像我们的三层架构一样Controller，Service，Mapper等等

    }
}
